package com.link.base.base.order.service;

import com.link.base.base.order.model.OrderPolicyResult;
import com.link.base.base.policy.model.PcyResult;
import com.link.core.basic.service.BasicService;

import java.util.List;

/**
 * @author yrf
 * @date unknown
 * @comments 订单政策结果服务
 */
public interface OrderPolicyResultService extends BasicService<OrderPolicyResult> {

    /**
     * <p>根据订单id查询生效的订单政策规则结果</p>
     *
     * @author yrf
     * @param orderId 订单id
     * @return List OrderPolicyResult
     * @throws Exception
     */
    public List<OrderPolicyResult> queryListByOrderId(Long orderId) throws Exception;

    /**
     * <p>根据订单id查询生效的政策规则结果</p>
     *
     * @author yrf
     * @param orderId
     * @return 政策规则结果
     * @throws Exception
     */
    public List<PcyResult> queryPcyResultByOrderId(Long orderId) throws Exception;
}
